#include <bits/stdc++.h>
using namespace std;
int a, b;
int main()
{
	cin >> a >> b;
	int t = a + b;
	a = max(a, b), b = t - a;
	if(b == 0){
		cout << "×" << endl;
		return 0;
	}
	if(a % b == 0)
		cout << "√" << endl;
	else
		cout << "×" << endl;
	return 0;
}